import {httpRequest} from '@/request/https'

export default {
    /**
     * 加油合同分页查询
     * */
    postRefuelingPage: params => httpRequest({url: '/con/conRefueling/page', method: 'post', params}),
    /**
     * 新增加油合同
     * */
    postAddRefueling: params => httpRequest({url: '/con/conRefueling', method: 'post', params}),
    /**
     * 修改加油合同
     * */
    putRefueling: params => httpRequest({url: '/con/conRefueling', method: 'put', params}),
    /**
     * 删除加油合同
     * */
    deleteRefueling: params => httpRequest({url: `/con/conRefueling/${params}`, method: 'delete'}),
    /**
     * 申请加油合同优秀模板
     * */
    postRefuelingExcellent: params => httpRequest({url: `/con/conRefueling/excellent`, method: 'post', params}),
    /**
     * 查询加油合同详情
     * */
    getRefuelingInfo: params => httpRequest({url: `/con/conRefueling`, method: 'get', params}),
    /**
     * 加油合同导出
     * */
    exportRefueling: params => httpRequest({url: `/con/conRefueling/export`, method: 'post', params})
}
